package com.xgg.taiwuinfo.gongfa.abilities;

import android.content.Context;

//运功时的毒抗和加内外伤上限效果
public class Ability_YunGong_HPandPoison
{
    final int PoiLie;
    final int PoiYu ;
    final int PoiHan ;
    final int PoiChi ;
    final int PoiFu;
    final int PoiHuan ;
    final int HPI ;
    final int HPO ;

    public static final int Count = 8;

    public int getPoiLie(){return PoiLie;}

    public int getPoiYu(){return PoiYu;}

    public int getPoiHan(){return PoiHan;}

    public int getPoiChi(){return PoiChi;}

    public int getPoiFu(){return PoiFu;}

    public int getPoiHuan(){return PoiHuan;}

    public int getHPI(){return HPI;}

    public int getHPO(){return HPO;}

    public Ability_YunGong_HPandPoison(int [] hp_poi)
    {
        PoiLie  = hp_poi[0];
        PoiYu  = hp_poi[1];
        PoiHan  = hp_poi[2];
        PoiChi  = hp_poi[3];
        PoiFu  = hp_poi[4];
        PoiHuan  = hp_poi[5];
        HPI  = hp_poi[7];
        HPO  = hp_poi[6];
    }

    public String getDescString(Context ctx)
    {
        String rt = "";
        if (PoiLie !=  0) { String str = String.format("烈毒抵抗: +%d\r\n" , PoiLie); rt += str;}
        if (PoiYu !=  0) { String str = String.format("郁毒抵抗: +%d\r\n" , PoiYu); rt += str;}
        if (PoiHan !=  0) { String str = String.format("寒毒抵抗: +%d\r\n" , PoiHan); rt += str;}
        if (PoiChi !=  0) { String str = String.format("赤毒抵抗: +%d\r\n" , PoiChi); rt += str;}
        if (PoiFu !=  0) { String str = String.format("腐毒抵抗: +%d\r\n" , PoiFu); rt += str;}
        if (PoiHuan !=  0) { String str = String.format("幻毒抵抗: +%d\r\n" , PoiHuan); rt += str;}
        if (HPI !=  0) { String str = String.format("内伤上限: +%d\r\n" , HPI); rt += str;}
        if (HPO !=  0) { String str = String.format("外伤上限: +%d\r\n" , HPO); rt += str;}
        return rt;
    }

}
